﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="FilStartUps_Forum.ascx.cs"
    Inherits="FilStartUps.Controls.FilStartUps_Forum" %>
<%-- RepeatColumns="1" RepeatDirection="Vertical"     OnItemCommand="dlFilStartUps_Forum_ItemCommand"--%>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
    <tr>
        <td>
            <b>Forum Topics</b>
        </td>
        <td height="15">
        </td>
    </tr>
</table>
<%--OnPageIndexChanged="dotForumDisplay_Paged"--%>
<asp:DataGrid ID="dgForum" runat="server" BorderWidth="0" CellPadding="0" CellSpacing="0"
    Width="100%" AutoGenerateColumns="false" OnItemCommand="dgForum_ItemCommand" AllowPaging="true" PageSize="15" CssClass="forum">
    <PagerStyle Mode="NextPrev" HorizontalAlign="Right" CssClass="pageLink" BackColor="#ffffff"
        NextPageText="Next &gt;" PrevPageText="&lt; Prev"></PagerStyle>
    <SelectedItemStyle CssClass="bglight" />
    <AlternatingItemStyle CssClass="bgdark" />
    <ItemStyle CssClass="bglight" />
    <Columns>
        <asp:TemplateColumn>
            <HeaderStyle Width="70%" CssClass="listheader" />
            <HeaderTemplate>
                Title</HeaderTemplate>
            <ItemStyle CssClass="listColumnText" />
            <ItemTemplate>
                <b>
                <asp:Label runat="server" ID="lbforumid" Text='<%# DataBinder.Eval(Container.DataItem, "forumidPK") %>' Visible="false"></asp:Label>
                    <asp:LinkButton runat="server" ID="hlForum" CommandName="SelectRow" Text='<%# DataBinder.Eval(Container.DataItem, "forumtitle") %>'></asp:LinkButton>
                </b>
                <br />
                <asp:Literal runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "forumdescription") %>'></asp:Literal>
            </ItemTemplate>
        </asp:TemplateColumn>

        <asp:TemplateColumn>
        <HeaderStyle width="5%" CssClass="listheader" />
		<HeaderTemplate>Views</HeaderTemplate>
          <ItemStyle CssClass="listColumnText" />
	        <ItemTemplate>
                <asp:Label runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "views") %>'></asp:Label>
            </ItemTemplate>
        
        </asp:TemplateColumn>
    </Columns>
</asp:DataGrid>


<%--
<asp:Panel runat="server" ID="plForum">
    <div style="margin-top: 50px; margin-left: 60px">
        <asp:Repeater runat="server" ID="rpForum" OnItemCommand="rpForum_ItemCommand">
            <HeaderTemplate>
                <table class="forum" border="1" width="600px">
                    <thead>
                        <tr>
                            <th colspan="4">
                                Forum Topic
                            </th>
                            <th style="text-align: right">
                                Total Views
                            </th>
                        </tr>
                    </thead>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td style="background-color: Silver" colspan="4">
                        <asp:LinkButton runat="server" CommandName="SelectRow" ID="hlForum" Text='<%# DataBinder.Eval(Container.DataItem, "forumtitle") %>'></asp:LinkButton>
                        <asp:Label runat="server" ID="lbforumid" Text='<%# DataBinder.Eval(Container.DataItem, "forumidPK") %>'
                            Visible="false"></asp:Label>
                        <br />
                        <asp:Literal runat="server" ID="lbforumdescription" Text='<%# DataBinder.Eval(Container.DataItem, "forumdescription") %>'></asp:Literal>
                    </td>
                    <td style="text-align: right; background-color: Silver">
                        <asp:Label runat="server" ID="lbTotalView" Text='<%# DataBinder.Eval(Container.DataItem, "forumidPK") %>'></asp:Label>
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                </table>
            </FooterTemplate>
        </asp:Repeater>
    </div>
</asp:Panel>
--%>